package com.corpgovernment.supplier.mapper;


import com.corpgovernment.api.supplier.vo.AtUserLoginVo;
import com.corpgovernment.organization.common.mybatis.TkMapper;
import com.corpgovernment.supplier.entity.db.AtUserLogin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * MbSupplierProductMapper数据库操作接口类
 **/
public interface AtUserLoginMapper extends TkMapper<AtUserLogin> {

    AtUserLogin loadUserLogin(@Param("uid") String uid, @Param("supplierCode") String supplierCode);

    List<AtUserLogin> list(AtUserLogin model);

    int update(AtUserLogin model);

    /**
     * 更新用户状态
     */
    int deleteAtUserLogin(AtUserLogin model);

    void updatePwd(AtUserLogin model);

    void updatePhone(AtUserLogin model);

    void updateUnBindPhone(AtUserLogin model);

    /**
     * 获取AtUserLogin
     */
    AtUserLogin getAtUserLogin(AtUserLoginVo model);

    int updateAtUserLogin(AtUserLogin model);

    int deleteUserLoginBySupplierCode(String supplierCode);
}
